command line download file from google drive

73

$ wget "https://drive.google.com/uc?export=download&id=<fileId>" -O <fileName>
function saveFile() {
  var url = "http://www.ferc.gov/docs-filing/eqr/soft-tools/sample-csv/contract.txt";
  var blob = UrlFetchApp.fetch(url).getBlob();
  DriveApp.createFile(blob);
}

Comments

Submit
0 Comments